package com.app.server;

import com.app.model.AdminPermissionModel;
import com.app.model.CategoryModel;
import com.app.vo.CategoryVo;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

public interface CategoryService extends IService<CategoryModel> {
    //公共数据管理分页查询
    Page<CategoryModel> categoryPageList(int page, int limit, String backupsName);


    CategoryVo getCategoryList(int page, int limit, String name);

    List<CategoryModel> getCategoryByPid(Integer pid);
    //获取灾害类型列表
    List<CategoryModel> getDisasterType();

    List<CategoryModel> getAnimalType();

    //获取公共数据配置树
    List<CategoryModel> getCategoryTree(List<CategoryModel> categoryModelList);

    void deleteAll(Integer id);

    List<CategoryModel> selectByPid(int i);
}
